package com.atguigu.gmall.item.client;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 李旭
 * @date 2022/1/8 10:01
 * @Description:
 */
@Component
public class ItemFeignClientImpl implements ItemFeignClient {

    //降级处理方法
    @Override
    public Map getItem(Long skuId) {
        System.out.println("远程调用失败了 走此处");
        //...
        return new HashMap();
    }
}
